Avoid an a crash with GTK_DEBUG=builder
authorMatthias Clasen <mclasen@redhat.com>
Fri, 26 Feb 2016 19:47:16 +0000 (14:47 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 26 Feb 2016 20:52:19 +0000 (15:52 -0500)
commit2cabfcc80100b1863e82439e7b39eed024eb3a24
tree930b4bf0a06d0d45dce3ac7b5456ba9b5d8bb752
parent9f37557ffc2441150f6855e04c17d9f4e793cfb1
Avoid an a crash with GTK_DEBUG=builder

We might cast objects to GtkBuildable even if they aren't,
to print their names. Don't do that.

Found by gcc's address sanitizer.
gtk/gtkbuilder.c